package com.lzy.system.dictManage.dto;

import com.lzy.common.CommonEntity;
import com.lzy.validator.StringMinMaxConstraint;
import com.lzy.validator.TypeConstraint;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统字典分组
 * </p>
 *
 * @author lcc
 * @since 2023-12-31
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "SysDicGroup对象", description = "系统字典分组")
public class SysDicGroupDto extends CommonEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("标题")
    @StringMinMaxConstraint(min = 1,max = 100,message = "标题长度必须在1-100之间")
    private String title;

    @ApiModelProperty("描述")
    @StringMinMaxConstraint(min = 1,max = 100,message = "描述长度必须在1-100之间")
    private String notes;

    @ApiModelProperty("是否可用1：可用，0：不可用")
    @TypeConstraint(values = {0,1},message = "是否可用必须输入：1：可用，0：不可用")
    private Integer enable;
}
